package edu.zut.cs.software.person.staff.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.teach.Base.domain.BaseEntity;

/**
 * 
 * @author liyahui class for staff entity
 */
@Entity
@Table(name = "t_staff")
public class Staff extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/*
	 * staff name
	 */
	@Column
	String name;

	/*
	 * staff salary
	 */
	@Column
	int Salary;

	/*
	 * staff work group
	 */
	@Column
	String workgroup;

	@ManyToOne
	@JoinColumn(name = "STAFF_CATEGORY_ID")
	StaffCategory staffcategory;

	public StaffCategory getStaffcategory() {
		return staffcategory;
	}

	public void setStaffcategory(StaffCategory staffcategory) {
		this.staffcategory = staffcategory;
	}

	public String getWorkgroup() {
		return workgroup;
	}

	public void setWorkgroup(String workgroup) {
		this.workgroup = workgroup;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSalary() {
		return Salary;
	}

	public void setSalary(int salary) {
		Salary = salary;
	}

}
